let requestUrl = {}
    requestUrl.base = {
        name: "OA移动办公",
        branch: "xj"
    }
    requestUrl.xj = {
        version: "1",
        /**0:测试版本,1:正式版本**/
        alpha: {
            baseUrl: "../../datas/",
            urls: {
                /*登录*/
                login: "login/user.json",
                /*代办已办*/
                getTodoList: "todo/todoList.json", //待办
                getDoneList: "todo/doneList.json", //已办
                getListInfo: "todo/listInfo.json", //待办单据
                refuseRequests: "todo/refuseRequests.json", //退回单据
                agreeRequests: "todo/agreeRequests.json", //审批通过
                backDoneList: "todo/backDoneList.json", //取回已办
                /*资料库*/
                getFiles: "file/files.json", //获取文件夹
                getFileGroups: "file/filesGroup.json", //获取文件
                saveFoldToCloud: "file/saveFoldToCloud.json", //文件夹保存到云盘
                saveFilesToCloud: "file/saveFilesToCloud.json", //文件保存到云盘
                downToLocal: "file/downToLocal.json", //下载文件夹到本地
                /*我的云盘*/
                getCloudFolders: "cloud/cloudFolders.json", //获取我的云盘文件夹
                createCloudFolder: "cloud/createFolder.json", //创建新的文件夹
                deleteCloudFolder: "cloud/deleteFolder.json", //删除文件夹
                getCloudFiles: "cloud/filesGroup.json", //获取云盘文件
                deleteCloudFiles: "cloud/deleteFolder.json", //删除文件
                moveCloudFile: "cloud/deleteFolder.json", //移动文件
                upCloudFile: "cloud/deleteFolder.json", //文件上传资料库
                /*公告中心*/
                getAnnounceList: "notices/announcelist.json", //公告中心-通知公告
                getAnnounceDetails: "notices/view.json", //通知公告-公告详情
                getAddressList: "books/addressBook.json", //通讯录列表
                getAddressDetails: "books/addressDetail.json" //通讯详情
            }
        },
        release: {
            //baseUrl : "http://www2.pansoft.com/xjOA/",
            //baseUrl : "http://10.16.78.117:8080/xjOA/",//huo
            //baseUrl : "http://192.168.2.28:8082/xjOA/",//周忠严本地
            //baseUrl: "http://192.168.2.15:8080/xjOA/",
            //baseUrl: "http://10.16.76.170:8080/xjOA/",
            //baseUrl: "http://10.16.9.137:8080/xjOA/",
            //baseUrl : "http://10.16.8.167:8080/xjOA/",//新疆测试

//			baseUrl: "http://10.16.93.142:8080/xjOA/",
            baseUrl : "http://10.16.0.128:8083/xjOA/",//正式服务器--------->0000001
//           baseUrl: "http://222.82.252.248:2060/xjOA/",

            urls: {
                hostUrl: "../",
                rootUrl: "./", //根目录
                //getPublicKey: "jf/mobileLogin/getPublicKey",
                //login: "jf/mobileLogin/login",
                login: "jf/mobileLogin/adLogin", //--------------->00000002
                getTocket: "jf/mobile/afterLogin", //获取token
                loginout: "logout2.do", //登出
                getUserInfo: "jf/mobile/getUser", //获取用户信息
                getTodoList: "jf/mobile/mobileToDoList", //获取待办信息
                getDoneList: "jf/mobile/haveDoneList", //获取已办信息
                getListInfo: "jf/mobile/detail", //获取待办详情
                getYBDetail: "jf/mobile/ybDetail", //获取已办详情
                getappYbDetail: "jf/mobile/appYbDetail", //获取诉求已办
                agreeRequests: "jf/mobile/complete", //退回/审批通过 单据
                getDepartments: "commonGetDicInfo.do", //获取部门
                getLeaders: "jf/mobile/getJldTree", //获取领导信息啊 
                getBsrTree: "jf/mobile/getBsrTree", //获取报送人tree
                getAddressList: "jf/mobile/getFriendList", //通讯录列表
                getAnnounceList: "jf/mobile/getNoticeList", //通知公告列表
                getDemand: "jf/mobile/appealInitiate", //发起诉求
                histoicFlow: "jf/mobile/histoicFlow", //获取流程
                getAppeal: "jf/mobile/findAnonymousApp", //获取匿名诉求list
                getTaskId: "jf/mobile/getTaskId", //获取匿名任务的taskid
                submitFeedback: "jf/mobile/anonymousAppHK", //提交满意度回馈
                getZRRTree: "jf/mobile/getZRRTree", //获取责任人tree
                getBlrTree: "jf/mobile/getBlrTree", //获取办理人tree
                getReferList: "jf/mobile/referList", //获取查询列表
				getMeetCXList: "jf/mobile/getMeetCXList", //获取会议查询列表
                getMeetTodoList: "jf/mobile/meetTodoList", //获取会议审批列表
                getZrrByDWID: "jf/mobile/getZrrByDWID", //获取部门责任人ID
                getZrrTreeByDWID: "jf/mobile/getZrrTreeByDWID", //获取部门成员ID

                getTodoHisNum: "jf/mobile/getTodoHisNum", //获取待办已办条数

                geturgeYbDetail: "jf/mobileUrge/urgeYbDetail", //获取督查已办
                agreeRequests2: "jf/mobileUrge/urgeComplete", //urge审批
                creatJLDUrge: "jf/mobileUrge/urgeStart", //局领导催办发起
                getFzrAndZGLD: "jf/mobileUrge/getFzrAndZGLD", //获取单位的负责人和接收人
                getDownloadUrl: "jf/fileDownloader/fileDownloader",
                submitUrgeUrl: "jf/mobileNewUrge/doTask",

                urge_dckqrwsSubmit: "jf/mobileUrge/urge_dckqrwsSubmit", //督查科办理局领导督查催办

                getUserRole: "jf/mobileLeave/getUserRole", //获取用户角色
                
                getNjzbpm: "jf/mobileLeave/getnjzbpm", //获取南疆值班排名
                
                saveLeave: "jf/mobileLeave/save", //提交请假
                getLeaveDetail: "jf/mobileLeave/getDetail", //获取请假详情
                agreeRequests3: "jf/mobileLeave/submitPro", //leave审批
                getLeaveYBDetail: "jf/mobileLeave/getLeaveYBDetail", //获取请假已办详情
                getMeetYBDetail: "jf/mobileLeave/getMeetYBDetail", //获取会议信息详情
                getMeetDBDetail: "jf/mobileLeave/getMeetDBDetail", //获取会议审批详情
                submitMeet: "jf/mobileLeave/submitMeet",//会议审批
                getSPPerson: "jf/mobileLeave/getLeaders", //获取审批人
                getXJList: "jf/mobileLeave/getXJList", //获取未销假的列表
                getXQList: "jf/mobileLeave/getXQList", //获取可续期的列表
                xiaojia: "jf/mobileLeave/xiaojia", //提交销假信息
                getDicInfo: "jf/mobileLeave/getDicInfo", //获取人员字典

                getAttachZUrl: "jf/mobileUrgeZB/getFileTableZ", //获取总文件列表
                getAttachUrl: "jf/mobileUrgeZB/getFileTable", //获取文件列表
                submitUrgeZBUrl: "jf/mobileUrgeZB/doTask", //提交任务
                getUrgeZBCommData: "jf/mobileUrgeZB/getCommData", //获取局领导信息
                getUrgeZBYbDetail: "jf/mobileUrgeZB/getYbDetail", //获取已办详情
            }
        }

    }

    requestUrl.getRequestURL = function(t) {
        var _branch = this.base.branch,
            _branchContent = this[_branch],
            _version = _branchContent.version;
        if (_version == null) return '';
        var _baseUrl = '',
            _requestURL = '';
        if (_version == '0') {
            _baseUrl = _branchContent.alpha.baseUrl;
                _requestURL = _branchContent.alpha.urls[t];
        } else if (_version == '1') {
            _baseUrl = _branchContent.release.baseUrl;
                _requestURL = _branchContent.release.urls[t];
        }
        if (_requestURL == "" || _requestURL == null)
            return '';
        return _baseUrl + _requestURL;
    }
	export default requestUrl